package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.StaffForm;
import com.shensi.api.admin.domian.station.dto.StaffVO;
import com.shensi.api.admin.domian.station.dto.SyncUserDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface UserSyncClient {


    @PostMapping("/syncUser/addUser/{timestamp}/{sign}")
    public AjaxResult syncUser(@RequestBody @Valid SyncUserDto syncUserDto);


    @PostMapping("/syncUser/batchSyncUser/{timestamp}/{sign}")
    public AjaxResult batchSyncUser(@RequestBody List<SyncUserDto> syncUserDtoList);
}
